home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / kh_gdi.zip / GRDEMO.RC < prev    next >
Text File  |  1996-05-11  |  13KB  |  342 lines

  1. /*  Project gdi_demo
  2.     
  3.     Copyright ⌐ 1995. All Rights Reserved.
  4.  
  5.     SUBSYSTEM:    gdi_demo.exe Application
  6.     FILE:         gd_dmapp.rc
  7.     AUTHOR:       S.Vartanov
  8.  
  9.  
  10.     OVERVIEW
  11.     ========
  12.     All resources defined here.      
  13. */
  14.  
  15. #if !defined(WORKSHOP_INVOKED)
  16. #include <windows.h>
  17. #endif
  18. #include "gd_dmapp.rh"
  19.  
  20. SDI_MENU MENU 
  21. {
  22.  POPUP "&File"
  23.  {
  24.   MENUITEM "&New", CM_FILENEW
  25.   MENUITEM SEPARATOR
  26.   MENUITEM SEPARATOR
  27.   MENUITEM "E&xit\tAlt+F4", CM_EXIT
  28.  }
  29.  
  30.  MENUITEM SEPARATOR
  31.  MENUITEM SEPARATOR
  32.  MENUITEM SEPARATOR
  33.  MENUITEM SEPARATOR
  34.  MENUITEM SEPARATOR
  35.  POPUP "&Help"
  36.  {
  37.   MENUITEM "&About...", CM_HELPABOUT
  38.  }
  39.  
  40. }
  41.  
  42.  
  43. // Accelerator table for short-cut to menu commands. (include\owl\editfile.rc)
  44. SDI_MENU ACCELERATORS
  45. BEGIN
  46.   VK_DELETE, CM_EDITDELETE, VIRTKEY
  47.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  48.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  49.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  50.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  51.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  52.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  53. END
  54.  
  55.  
  56. //
  57. // Table of help hints displayed in the status bar.
  58. //
  59. STRINGTABLE 
  60. BEGIN
  61.     -1,                         "File/document operations"
  62.     CM_FILENEW,                 "Creates a new window"
  63.     CM_FILEOPEN,                "Opens a window"
  64.     CM_FILECLOSE,               "Close this document"
  65.     CM_FILESAVE,                "Saves this document"
  66.     CM_FILESAVEAS,              "Saves this document with a new name"
  67.     CM_EXIT,                    "Quits gdi_demoApp and prompts to save the documents"
  68.     CM_EDITUNDO-1,              "Edit operations"
  69.     CM_EDITUNDO,                "Reverses the last operation"
  70.     CM_EDITCUT,                 "Cuts the selection and puts it on the Clipboard"
  71.     CM_EDITCOPY,                "Copies the selection and puts it on the Clipboard"
  72.     CM_EDITPASTE,               "Inserts the clipboard contents at the insertion point"
  73.     CM_EDITDELETE,              "Deletes the selection"
  74.     CM_EDITCLEAR,               "Clear the document"
  75.     CM_EDITADD,                 "Insert a new line"
  76.     CM_EDITEDIT,                "Edit the current line"
  77.     CM_EDITFIND-1,              "Search/replace operations"
  78.     CM_EDITFIND,                "Finds the specified text"
  79.     CM_EDITREPLACE,             "Finds the specified text and changes it"
  80.     CM_EDITFINDNEXT,            "Finds the next match"
  81.     CM_HELPABOUT-1,             "Access About"
  82.     CM_HELPABOUT,               "About the gdi_demo application"
  83. END
  84.  
  85.  
  86. //
  87. // OWL string table
  88. //
  89.  
  90. // EditFile (include\owl\editfile.rc and include\owl\editsear.rc)
  91. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  92. BEGIN
  93.     IDS_CANNOTFIND,             "Cannot find ""%s""."
  94.     IDS_UNTITLED,               "Document"
  95.     IDS_UNABLEREAD,             "Unable to read file %s from disk."
  96.     IDS_UNABLEWRITE,            "Unable to write file %s to disk."
  97.     IDS_FILECHANGED,            "The text in the %s file has changed.\n\nDo you want to save the changes?"
  98.     IDS_FILEFILTER,             "Text files (*.TXT)|*.TXT|AllFiles (*.*)|*.*|"
  99. END
  100.  
  101.  
  102. // Exception string resources (include\owl\except.rc)
  103. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  104. BEGIN
  105.     IDS_OWLEXCEPTION,           "ObjectWindows Exception"
  106.     IDS_UNHANDLEDXMSG,          "Unhandled Exception"
  107.     IDS_OKTORESUME,             "OK to resume?"
  108.     IDS_UNKNOWNEXCEPTION,       "Unknown exception"
  109.  
  110.     IDS_UNKNOWNERROR,           "Unknown error"
  111.     IDS_NOAPP,                  "No application object"
  112.     IDS_OUTOFMEMORY,            "Out of memory"
  113.     IDS_INVALIDMODULE,          "Invalid module specified for window"
  114.     IDS_INVALIDMAINWINDOW,      "Invalid MainWindow"
  115.     IDS_VBXLIBRARYFAIL,         "VBX Library init failure"
  116.  
  117.     IDS_INVALIDWINDOW,          "Invalid window %s"
  118.     IDS_INVALIDCHILDWINDOW,     "Invalid child window %s"
  119.     IDS_INVALIDCLIENTWINDOW,    "Invalid client window %s"
  120.  
  121.     IDS_CLASSREGISTERFAIL,      "Class registration fail for window %s"
  122.     IDS_CHILDREGISTERFAIL,      "Child class registration fail for window %s"
  123.     IDS_WINDOWCREATEFAIL,       "Create fail for window %s"
  124.     IDS_WINDOWEXECUTEFAIL,      "Execute fail for window %s"
  125.     IDS_CHILDCREATEFAIL,        "Child create fail for window %s"
  126.  
  127.     IDS_MENUFAILURE,            "Menu creation failure"
  128.     IDS_VALIDATORSYNTAX,        "Validator syntax error"
  129.     IDS_PRINTERERROR,           "Printer error"
  130.  
  131.     IDS_LAYOUTINCOMPLETE,       "Incomplete layout constraints specified in window %s"
  132.     IDS_LAYOUTBADRELWIN,        "Invalid relative window specified in layout constraint in window %s"
  133.  
  134.     IDS_GDIFAILURE,             "GDI failure"
  135.     IDS_GDIALLOCFAIL,           "GDI allocate failure"
  136.     IDS_GDICREATEFAIL,          "GDI creation failure"
  137.     IDS_GDIRESLOADFAIL,         "GDI resource load failure"
  138.     IDS_GDIFILEREADFAIL,        "GDI file read failure"
  139.     IDS_GDIDELETEFAIL,          "GDI object %X delete failure"
  140.     IDS_GDIDESTROYFAIL,         "GDI object %X destroy failure"
  141.     IDS_INVALIDDIBHANDLE,       "Invalid DIB handle %X"
  142. END
  143.  
  144.  
  145. // General Window's status bar messages. (include\owl\statusba.rc)
  146. STRINGTABLE
  147. BEGIN
  148.     IDS_MODES                   "EXT|CAPS|NUM|SCRL|OVR|REC"
  149.     IDS_MODESOFF                "   |    |   |    |   |   "
  150.     SC_SIZE,                    "Changes the size of the window"
  151.     SC_MOVE,                    "Moves the window to another position"
  152.     SC_MINIMIZE,                "Reduces the window to an icon"
  153.     SC_MAXIMIZE,                "Enlarges the window to it maximum size"
  154.     SC_RESTORE,                 "Restores the window to its previous size"
  155.     SC_CLOSE,                   "Closes the window"
  156.     SC_TASKLIST,                "Opens task list"
  157.     SC_NEXTWINDOW,              "Switches to next window"
  158. END
  159.  
  160.  
  161. // Validator messages (include\owl\validate.rc)
  162. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  163. BEGIN
  164.     IDS_VALPXPCONFORM          "Input does not conform to picture:\n""%s"""
  165.     IDS_VALINVALIDCHAR         "Invalid character in input"
  166.     IDS_VALNOTINRANGE          "Value is not in the range %ld to %ld."
  167.     IDS_VALNOTINLIST           "Input is not in valid-list"
  168. END
  169.  
  170.  
  171. //
  172. // Bitmaps used by the speedbar.  Each bitmap is associated with a
  173. // particular menu command.
  174. //
  175. CM_FILENEW BITMAP "new.bmp"
  176. CM_FILEOPEN BITMAP "open.bmp"
  177. CM_FILESAVE BITMAP "save.bmp"
  178.  
  179. CM_EDITUNDO BITMAP "undo.bmp"
  180. CM_EDITCUT BITMAP "cut.bmp"
  181. CM_EDITCOPY BITMAP "copy.bmp"
  182. CM_EDITPASTE BITMAP "paste.bmp" 
  183.  
  184. CM_EDITFIND BITMAP "find.bmp"
  185. CM_EDITFINDNEXT BITMAP "findnext.bmp"
  186.  
  187. CM_FILEPRINT BITMAP "print.bmp"
  188.  
  189.  
  190. //
  191. // Misc application definitions
  192. //
  193.  
  194. // Application ICON
  195. IDI_SDIAPPLICATION ICON "applsdi.ico"
  196.  
  197.  
  198. // About box.
  199. IDD_ABOUT DIALOG 12, 17, 204, 65
  200. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  201. CAPTION "About gdi_demo"
  202. FONT 8, "MS Sans Serif"
  203. {
  204.  CTEXT "Version", IDC_VERSION, 2, 14, 200, 8, SS_NOPREFIX
  205.  CONTROL "KNOW-HOW 1.0 Demo", -1, "STATIC", SS_CENTER | SS_NOPREFIX | WS_GROUP, 2, 4, 200, 8
  206.  CTEXT "", IDC_COPYRIGHT, 2, 27, 200, 17, SS_NOPREFIX
  207.  RTEXT "", IDC_DEBUG, 136, 55, 66, 8, SS_NOPREFIX
  208.  ICON IDI_SDIAPPLICATION, -1, 2, 2, 34, 34
  209.  DEFPUSHBUTTON "OK", IDOK, 82, 48, 40, 14
  210. }
  211.  
  212.  
  213. // TInputDialog class dialog box.
  214.  
  215.  
  216. // Horizontal slider thumb bitmap for TSlider and VSlider (include\owl\slider.rc)
  217. IDB_HSLIDERTHUMB BITMAP PRELOAD MOVEABLE DISCARDABLE 
  218. BEGIN
  219.     '42 4D 66 01 00 00 00 00 00 00 76 00 00 00 28 00'
  220.     '00 00 12 00 00 00 14 00 00 00 01 00 04 00 00 00'
  221.     '00 00 F0 00 00 00 00 00 00 00 00 00 00 00 00 00'
  222.     '00 00 10 00 00 00 00 00 00 00 00 00 C0 00 00 C0'
  223.     '00 00 00 C0 C0 00 C0 00 00 00 C0 00 C0 00 C0 C0'
  224.     '00 00 C0 C0 C0 00 80 80 80 00 00 00 FF 00 00 FF'
  225.     '00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
  226.     '00 00 FF FF FF 00 BB BB 0B BB BB BB B0 BB BB 00'
  227.     '00 00 BB B0 80 BB BB BB 08 0B BB 00 00 00 BB 08'
  228.     'F8 0B BB B0 87 70 BB 00 00 00 B0 8F F8 80 BB 08'
  229.     '77 77 0B 00 00 00 08 F8 88 88 00 88 88 87 70 00'
  230.     '00 00 0F F7 77 88 00 88 77 77 70 00 00 00 0F F8'
  231.     '88 88